Skip to content

repeat: skip sleep after the final pass - #414

Open
hja-oss wants to merge 1 commit into
lsof-org:masterfrom
hja-oss:fix/repeat-count-final-delay
Open

hja-oss wants to merge 1 commit into
lsof-org:masterfrom
hja-oss:fix/repeat-count-final-delay

Conversation

@hja-oss

@hja-oss hja-oss commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

In repeat mode with a specified count, lsof sleeps for the repeat interval after the final pass, even though no further scan is needed. For example, lsof -r30c1 waits 30 seconds before exiting after its single scan.

Skip the final sleep while preserving the interval between passes and the existing output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant